/**
 * Copyright (c) 2009-2011, chunquedong(YangJiandong)
 * 
 * This file is part of ChunMap project
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE(Version >=3)
 * 
 * History:
 *     2010-05-05  Jed Young  Creation
 */
package chunmap.util;
/**
 * 自增长的Int，匿名内部类迭代中需要使i++操作，但必须让它捕获的局部变量为final。
 * @author yangjiandong
 *
 */
public class IncreaseInt {
	private int i;public int getI() {return i;}public void setI(int i) {this.i = i;}
	
	public IncreaseInt(){
		i=0;
	}
	public IncreaseInt(int i){
		this.i=i;
	}
	
	public void incrase(){
		i++;
	}
	
	
}